import mode from "./env";

// 不同环境不同的请求接口
export enum baseUrl {
  developmentPc = "http://test.bis.com/api",
  developmentBack = "http://test.bis_back.com/api",
  // developmentBack = "http://127.0.0.1:4000/api",
  productionPc = "http://www.bis.com/api",
  productionBack = "http://www.bis_back.com/api",
}

export const getBaseUrl = (): string => {
  return baseUrl[mode as keyof typeof baseUrl];
};
